//
//  HealthFoodList.m
//  LoveHealth
//
//  Created by 枫哥 on 14-9-22.
//  Copyright (c) 2014年 lanou. All rights reserved.
//

#import "HealthFoodList.h"

@implementation HealthFoodList

- (void)dealloc
{
    self.food = nil;
    self.img = nil;
    self.tag = nil;
    [super dealloc];
}
- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [super encodeWithCoder:aCoder];
    [aCoder encodeObject:self.food forKey:@"food"];
    [aCoder encodeObject:self.img forKey:@"img"];
    [aCoder encodeObject:self.tag forKey:@"tag"];
}
- (id)initWithCoder:(NSCoder *)aDecoder
{
//    self = [super init];
    self = [super initWithCoder:aDecoder];
    if (self) {
        self.food = [aDecoder decodeObjectForKey:@"food"];
        self.img = [aDecoder decodeObjectForKey:@"img"];
        self.tag = [aDecoder decodeObjectForKey:@"tag"];
    }
    return self;
}
@end
